<?php

/**
 * This is the model class for table "{{widget}}".
 *
 * The followings are the available columns in table '{{widget}}':
 * @property integer $id
 * @property string $title
 * @property integer $status
 * @property string $image
 * @property string $link
 * @property string $description
 */
class CustomHTML extends CModel {

    public $id;
    public $content;
    

    /**
     * Returns the static model of the specified AR class.
     * @param string $className active record class name.
     * @return Widget the static model class
     */
    public static function model($className = __CLASS__) {
	return new CustomHTML;
    }

    /**
     * @return array validation rules for model attributes.
     */
    public function rules() {
	// NOTE: you should only define rules for those attributes that
	// will receive user inputs.
	return array(
	    array('content', 'required'),
	    array('content', 'length', 'min' => 1),
	    // Please remove those attributes that should not be searched.
	    array('content', 'safe', 'on' => 'search'),
	);
    }

    /**
     * @return array customized attribute labels (name=>label)
     */
    public function attributeLabels() {
	return array(
	    'id' => t('LBL_ID', 'widget'),
	    'Content' => t('LBL_CONTENT', 'widget'),
	   
	);
    }

    public function attributeNames() {
	return array('id', 'content');
    }
}